grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
//grails.project.war.file = "target/${appName}-${appVersion}.war"
grails.project.dependency.resolution = {
    // inherit Grails' default dependencies
    inherits("global") {
        // uncomment to disable ehcache
        // excludes 'ehcache'
    }
    log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
	
	//install-plugin geb
	//install-plugin spock
	//http://sysgears.com/articles/gebspock-functional-testing-grails
	def gebVersion = "0.6.2" //added r
	def seleniumVersion = "2.12.0" //added r
	def easybVersion = "2.0.5" 
	def spockVersion = "0.5-groovy-1.7"
	def codeCoverageVersion = "1.2.4"

    repositories {
        grailsPlugins()
        grailsHome()
        grailsCentral()		

        // uncomment the below to enable remote dependency resolution
        // from public Maven repositories
        mavenLocal() // uncommented
        mavenCentral() //uncommented
		// For Geb snapshot //added
		mavenRepo "https://nexus.codehaus.org/content/repositories/snapshots" //added
        //mavenRepo "http://snapshots.repository.codehaus.org"
        //mavenRepo "http://repository.codehaus.org"
        //mavenRepo "http://download.java.net/maven/2/"
        //mavenRepo "http://repository.jboss.com/maven2/"
    }
    dependencies {
        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.

        // runtime 'mysql:mysql-connector-java:5.1.13'
		
		test "org.codehaus.geb:geb-spock:$gebVersion"
		test "org.codehaus.geb:geb-easyb:$gebVersion"
		test "org.codehaus.geb:geb-junit4:$gebVersion"
		
		test("org.seleniumhq.selenium:selenium-htmlunit-driver:$seleniumVersion") { exclude "xml-apis" }
		test "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"
		test "org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion"
		test "org.seleniumhq.selenium:selenium-support:$seleniumVersion"

	}
	plugins {
		test ":tomcat:$grailsVersion"
		test ":hibernate:$grailsVersion"
		
		test ":geb:$gebVersion"
		test ":spock:$spockVersion"
		
		test ":easyb:$easybVersion"
		test ":code-coverage:$codeCoverageVersion"
	}
}